package com.wangsd.web.mqpay.mapper;

import com.gitee.fastmybatis.core.mapper.CrudMapper;
import com.wangsd.web.mqpay.entity.Customer;
import org.apache.ibatis.annotations.Update;

public interface CustomerMapper extends CrudMapper<Customer, Long> {

    @Update("update customer set useable_amount = useable_amount + #{useableAmount}, profit_amount = profit_amount + #{profitAmount} where id = #{id}")
    void updateUseableAndProfit(Integer useableAmount, Integer profitAmount, Long id);
}
